package com.zmn.oms.common.dio.wallquotation;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * 墙面报价服务项信息
 *
 * @author chengguang
 * @date 2022/05/25
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class WallServItemDIO implements Serializable {

    private static final long serialVersionUID = 548671369881146851L;

    @ApiModelProperty("服务项id")
    @NotNull(message = "servItemId不能为空")
    @Positive(message = "servItemId必须大于0")
    private Integer servItemId;

    @ApiModelProperty("服务项/附加项名称")
    @NotBlank(message = "服务项/附加项名称不能为空")
    private String servItemName;

    @ApiModelProperty("标准价")
    @NotNull(message = "servItemPrice不能为空")
    @Positive(message = "servItemPrice必须大于0")
    private Integer servItemPrice;

    @ApiModelProperty("服务项目类型 1->附加项，2->服务项")
    @NotNull(message = "servItemType不能为空")
    @Positive(message = "servItemType必须大于0")
    @Max(value = 2,message = "servItemType不能大于2")
    private Integer servItemType;

    @ApiModelProperty("数量")
    @NotNull(message = "servItemSize不能为空")
    @Positive(message = "servItemSize必须大于0")
    private Integer servItemSize;

    @ApiModelProperty("最低价")
    @NotNull
    private Integer priceSaleLowest;
}
